export default $axios => ({
    autoComplete(keyword) {
        return $axios.get('/server/product', {
            params: {
                type: 'complete',
                keyword
            }
        })
    },
    search(keyword) {
        return $axios.get('/server/product', {
            params: {
                type: 'search',
                keyword
            }
        })
    }
})